﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///Search 的摘要说明
/// </summary>
public class ASSearch
{
	public ASSearch()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public string ConertSubject(string subject)
    {
        string sub = "";
        switch (subject)
        {
            case "1":
                sub = "人文社会科学";
                break;
            case "2":
                sub = "自然科学";
                break;
            case "3":
                sub = "军事基础";
                break;
            case "4":
                sub = "公共工具";
                break;
            case "5":
                sub = "专业基础";
                break;
            case "6":
                sub = "专业方向";
                break;
        }
        return sub;
    }
    public string GetPublisherName(string pubid)
    {
        string name;
        string strSQL;
        strSQL = "SELECT username FROM admin WHERE id =" + pubid;
        DataTable AdminList = new DataTable();
        MysqlHelp AdminListSQL = new MysqlHelp();
        AdminList = AdminListSQL.GetDatabysql(strSQL);
        name = AdminList.Rows[0]["username"].ToString();
        return name;
    }
}
